/* eslint-disable */
import { http } from '../common/fetch';

/**
 * 采购进展 接口
 * */
// 根据项目id获取总采购包数、已到场数量
export async function getPageTotalAndOverTotalInfo(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/cecc/getPageTotalAndOverTotalInfo/${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}

// 根据项目id获取所有采购数据
export async function getMajorAndPageTotalInfo(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/cecc/getMajorAndPageTotalInfo/${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}

/**
 * QHSE 接口
 * */

// 根据项目id获取QHSE管理-质量及安全整改信息
export async function qualityAndSecurityRectInfo(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/cecc/queryQualityAndSecurityRectInfo/${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}

// 根据id获取QHSE管理-监造进展数据信息
export async function constructionProgressInfo(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/cecc/queryConstructionProgressInfo/${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}

// 根据项目id获取QHSE管理-业主NCR
export async function getQHSENCRInfo(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/cecc/getQHSENCRInfo/${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}


// 设计进展
export async function dcesignProgressVolume(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/dcesignProgressVolume?projectId=${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}

export async function dcesignProgressspec(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/dcesignProgressspec?projectId=${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}



export async function constructionProgress(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/constructionProgress?projectId=${projectId}`,
        method: 'get',
        headers: {
            'content-type': 'application/json'
        }
    });
}

// 项目信息
export async function homeProjectReport(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/homeProjectReport?projectId=${projectId}`,
        method: 'get'
    });
}

export async function homeProjectOverview(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/homeProjectOverview?projectId=${projectId}`,
        method: 'get'
    });
}

export async function overallProgress(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/overallProgress?projectId=${projectId}`,
        method: 'get'
    });
}

export async function overallProgressUnit(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/overallProgressUnit?projectId=${projectId}`,
        method: 'get'
    });
}

// 现金流
export async function homeTableData(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/homeTableData?projectId=${projectId}`,
        method: 'get'
    });
}

export async function QHSEManagementDesign(projectId) {
    return await http({
        url: `/rs-server/Mavencmc/CockpitReport/QHSEManagementDesign?projectId=${projectId}`,
        method: 'get'
    });
}